package org.jeecg.modules.manager.mapper;

import java.util.List;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.SelectProvider;
import org.jeecg.modules.manager.entity.Stock;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.jeecg.modules.manager.entity.StockQueryVo;
import org.jeecg.modules.manager.mapper.provider.StockProvider;
import org.springframework.stereotype.Repository;

/**
 * @Description: 库存表
 * @Author: jeecg-boot
 * @Date:   2021-11-19
 * @Version: V1.0
 */
@Repository
public interface StockMapper extends BaseMapper<Stock> {
    @SelectProvider(type = StockProvider.class,method = "page")
    List<StockQueryVo> getPage(Page<StockQueryVo> pageVo, StockQueryVo vo);

    @SelectProvider(type = StockProvider.class,method = "page")
    List<StockQueryVo> getPage(StockQueryVo vo);
}
